﻿@model AzureGames.Domain.Models.GameUser

@{
    ViewBag.Title = "Profile";
}

@*<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>*@

<div id="dashboard-page">
    <div id="scrollable">
        <div>            
             @Html.Partial("_TileList", Model) 
        </div>       
    </div>
    <div id="fixed">
        <div>
            <div id="user" class="framed article">
                <div id="user-content">
                   
@using (Html.BeginForm("Profile", "User"))
{
    @Html.ValidationSummary(true)
    
        <legend>User</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.FirstName, "First Name")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FirstName)
            @Html.ValidationMessageFor(model => model.FirstName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LastName, "Last Name")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LastName)
            @Html.ValidationMessageFor(model => model.LastName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email, "Email Address")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Name, "Display Name")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
   
}
            </div>
          @* <div id="profilegraph" class="framed article">
                <div class="content">
                    <div class="header"></div>        
                    <div class="statistics aside">
                        <div>
                            <h1>Current Activity</h1>                
                               <div id="chrtTotalGames"></div>                    
                            </div>
                    </div>
                  </div>    
                </div>  
            </div>*@
        </div>
    </div>
   </div>
   </div>